package VLSys;



import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

public class TransactionModule extends JPanel {
        private JLabel title = new JLabel();
	JButton pindutan[] = new JButton[4];
        ImageIcon addExpense = new ImageIcon("images/transaction_module/expense_add_1.png");
        ImageIcon addExpense2 = new ImageIcon("images/transaction_module/expense_add_2.png");
        ImageIcon transEdit = new ImageIcon("images/transaction_module/transaction_edit_1.png");
        ImageIcon transEdit2 = new ImageIcon("images/transaction_module/transaction_edit_2.png");
        ImageIcon transNew = new ImageIcon("images/transaction_module/transaction_new_1.png");
        ImageIcon transNew2 = new ImageIcon("images/transaction_module/transaction_new_2.png");

public TransactionModule(){
        setVisible(false);
        setLayout(null);
        setBackground(Color.white);
        int i;
         for(i=0;i<=3;i++)
        {
            pindutan[i] = new JButton();
            pindutan[i].setContentAreaFilled(false);
            
        }
	
	pindutan[0].setIcon(transNew);
        pindutan[0].setRolloverIcon(transNew2);
        pindutan[1].setIcon(transEdit);
        pindutan[1].setRolloverIcon(transEdit2);
        pindutan[2].setIcon(addExpense);
        pindutan[2].setRolloverIcon(addExpense2);
        
        pindutan[0].setBounds(10,5,150,22);
        pindutan[1].setBounds(155,5,155,22);
        pindutan[2].setBounds(310,5,110,22);
	
        	add(title);
                for(i=0;i<=3;i++)
                {
                   add(pindutan[i]);
                   pindutan[i].setBorderPainted(false);

                }
    }
}



